{% extends 'layout.html' %}

{% block title %}
    查看诗人
{% endblock %}

{% block main %}
     <table class="table table-hover table-bordered">
        <thead>
            <tr>
                <td>姓名</td>
                <td>性别</td>
            </tr>
        </thead>
        <tbody>
            {% for poet in poets %}
                    <tr>
                    <td>{{ poet.name }}</td>
                    <td>{{ poet.get_sex_display }}</td>
                    </tr>
            {% endfor %}
        </tbody>
     </table>

{% endblock %}